package genetica.cromosomas.factorias;

import genetica.cromosomas.Cromosoma;
import genetica.cromosomas.CromosomaPG;

public class FactoriaPG extends FactoriaCromosomas<Cromosoma>{

	public FactoriaPG(){
	}
	
	@Override
	public Cromosoma crea() {
		return new CromosomaPG();
	}

	@Override
	public Cromosoma copia(Cromosoma original) {
		if (original instanceof CromosomaPG)
			return new CromosomaPG((CromosomaPG)original);
		return null;
	}
	
	@Override
	public String toString(){
		return "Problema programación genética";
	}

}
